package com.mf.all.entity.req.basic;

import java.io.Serial;

import com.mf.all.groups.GroupsAddInterface;
import com.mf.all.groups.GroupsUpdateInterface;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 岗位表提交
 *
 * @date 2025-04-02 22:36:46
 */
@Data
public class ReqJob implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    @NotNull(message = "id不能为空", groups = {GroupsUpdateInterface.class})
    private Integer id;

    @Schema(description = "所属部门")
    private List<Integer> deptIds;

    @NotBlank(message = "岗位名称不能为空", groups = {GroupsUpdateInterface.class, GroupsAddInterface.class})
    @Schema(description = "岗位名称")
    private String jobName;

    @Schema(description = "备注")
    private String remark;
    @Schema(description = "排序")
    private Integer sort;
}
